package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description ReservationJob
 * @Author zhengyh
 * @Date 2025-03-02  17:54
 */
@Component
@Slf4j
public class ReservationJob {

    @Autowired
    private IReservationService reservationService;

    /**
     * 定时更新预约状态
     */
    public void updateReservationStatusJob(){
        reservationService.updateReservationStatusJob();
        log.info("预约状态更新成功");
    }
}
